﻿<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="Bus_order.aspx.cs"
    Inherits="School.Pages.Bus.Bus_order" MasterPageFile="~/MasterALSafa.Master" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <script type="text/javascript">
        $(document).ready(
            $('.AddVoucher a').live('click', function () {
                var currentTime = new Date();
                var voucherDate = prompt("برجاء ادخال التاريخ", currentTime.getFullYear().toString() + "-" + (currentTime.getMonth() + 1).toString() + "-" + currentTime.getDate());

                var value = parseFloat($(this).parent().parent().find('.VoucherValue').text());
                var ivalue = parseFloat(prompt("برجاء ادخال القيمة المدفوعة", value));

                if (ivalue.toString() == "NaN")
                    alert("برجاء ادخال قيمة صحيحة");
                else if (ivalue > value)
                    alert("القيمة التى ادخلتها اكبر من القيمة المطلوبة و هى : " + value);
                else {
                    if (isDate(voucherDate)) {
                        window.open($(this).attr("href") + "&Paid=" + ivalue.toString() + "&date=" + voucherDate, 'الإيصال', "status=1,height=500,width:500");
                        $(this).parent().html("تسديد");
                    }
                    else
                        alert('برجاء ادخال تاريخ صحيح');
                }
                return false;
            })
        );

        function y2k(number) { return (number < 1000) ? number + 1900 : number; }

        function isDate(date) {
            var dateArray = date.split('-');

            if (dateArray.length != 3)
                return false;

            var year = dateArray[0];
            var month = dateArray[1];
            var day = dateArray[2];
            var today = new Date();
            year = ((!year) ? y2k(today.getYear()) : year);
            month = ((!month) ? today.getMonth() : month - 1);
            if (!day) return false
            var test = new Date(year, month, day);
            if ((y2k(test.getYear()) == year) && (month == test.getMonth()) && (day == test.getDate()))
                return true;
            else
                return false
        }

    </script>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table dir="rtl" style="width: 100%; float: right">
                <tr>
                    <td nowrap="nowrap">
                        <asp:Panel ID="PanelAdd" runat="server">
                            <table align="right" width="100%">
                                <tr>
                                    <td style="width: 62px">
                                        &nbsp;
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <table align="right" dir="rtl" style="width: 100%; float: right">
                                            <tr>
                                                <td colspan="2" class="admintitle" align="center">
                                                    <h1>
                                                        أمر دفع الباصات</h1>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td nowrap="nowrap" style="width: 55px">
                                                    المجمع
                                                </td>
                                                <td style="width: 174px">
                                                    <asp:DropDownList ID="ddlCampus" runat="server" AppendDataBoundItems="True" AutoPostBack="True"
                                                        DataTextField="Name" DataValueField="Id" OnTextChanged="ddlCampus_TextChanged"
                                                        Width="150px">
                                                        <asp:ListItem Value="0">اختيار</asp:ListItem>
                                                    </asp:DropDownList>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="ddlCampus"
                                                        Display="Dynamic" ErrorMessage="*" ForeColor="Red" InitialValue="0" ValidationGroup="st">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td nowrap="nowrap" style="width: 55px">
                                                    الشهاده
                                                </td>
                                                <td style="width: 174px">
                                                    <asp:DropDownList ID="ddlCertificate" runat="server" AppendDataBoundItems="True"
                                                        AutoPostBack="True" DataTextField="Name" DataValueField="Id" OnSelectedIndexChanged="ddlCertificate_SelectedIndexChanged"
                                                        Width="150px" TabIndex="1">
                                                        <asp:ListItem Value="0">اختيار</asp:ListItem>
                                                    </asp:DropDownList>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="ddlCertificate"
                                                        Display="Dynamic" ErrorMessage="*" ForeColor="Red" InitialValue="0" ValidationGroup="st">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td nowrap="nowrap" style="width: 55px">
                                                    المرحله
                                                </td>
                                                <td style="width: 174px">
                                                    <asp:DropDownList ID="ddlStadge" runat="server" AppendDataBoundItems="True" AutoPostBack="True"
                                                        DataTextField="Name" DataValueField="Id" OnSelectedIndexChanged="ddlStadge_SelectedIndexChanged"
                                                        Width="150px" TabIndex="2">
                                                        <asp:ListItem Value="0">اختيار</asp:ListItem>
                                                    </asp:DropDownList>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="ddlStadge"
                                                        Display="Dynamic" ErrorMessage="*" ForeColor="Red" InitialValue="0" ValidationGroup="st">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td nowrap="nowrap" style="width: 55px">
                                                    الصف
                                                </td>
                                                <td style="width: 174px">
                                                    <asp:DropDownList ID="ddlGrade" runat="server" AppendDataBoundItems="True" AutoPostBack="True"
                                                        DataTextField="Name" DataValueField="Id" OnSelectedIndexChanged="ddlGrade_SelectedIndexChanged"
                                                        Width="150px" TabIndex="3">
                                                        <asp:ListItem Value="0">اختيار</asp:ListItem>
                                                    </asp:DropDownList>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="ddlGrade"
                                                        Display="Dynamic" ErrorMessage="*" ForeColor="Red" InitialValue="0" ValidationGroup="st">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td nowrap="nowrap" style="width: 55px">
                                                    الطالب
                                                </td>
                                                <td style="width: 174px">
                                                    <asp:DropDownList ID="ddlstudent" runat="server" AppendDataBoundItems="True" DataTextField="FullName"
                                                        DataValueField="Id" Width="150px" TabIndex="4" OnSelectedIndexChanged="ddlstudent_SelectedIndexChanged">
                                                        <asp:ListItem Value="0">اختيار</asp:ListItem>
                                                    </asp:DropDownList>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="ddlstudent"
                                                        Display="Dynamic" ErrorMessage="*" ForeColor="Red" InitialValue="0" ValidationGroup="st">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <h2>
                                                        البحث</h2>
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                اسم الطالب
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="TxtStudentName" runat="server"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                أو رقم الطالب
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="TxtStudentNumber" runat="server"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:Button ID="BtnSearch" runat="server" Text="بحث" OnClick="BtnSearch_Click" />
                                                            </td>
                                                    </table>
                                                    <asp:Panel CssClass="students_search_grid" ID="StudentsPanel" runat="server" Visible="false">
                                                        <h2>
                                                            الطلاب</h2>
                                                        <asp:GridView ID="StudentsGrid" runat="server" Width="100%" CssClass="Grid" HeaderStyle-CssClass="GridHeaderFooter"
                                                            FooterStyle-CssClass="GridHeaderFooter" PagerStyle-CssClass="GridPager" AlternatingRowStyle-CssClass="GridItemAltername"
                                                            AutoGenerateColumns="False" Visible="False" OnRowCommand="StudentsGrid_RowCommand">
                                                            <AlternatingRowStyle CssClass="GridItemAltername" />
                                                            <Columns>
                                                                <asp:BoundField DataField="StudentNumber" HeaderText="رقم الطالب" />
                                                                <asp:BoundField DataField="StudentName" HeaderText="اسم الطالب" />
                                                                <asp:BoundField DataField="Certificate" HeaderText="القسم" />
                                                                <asp:BoundField DataField="Grade" HeaderText="الصف" />
                                                                <asp:TemplateField Visible="False">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="LblStudentId" runat="server" Text='<%# Eval("Id") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:ButtonField ButtonType="Button" Text="اختيار" CommandName="Select" />
                                                            </Columns>
                                                            <FooterStyle CssClass="GridHeaderFooter" />
                                                            <HeaderStyle CssClass="GridHeaderFooter" />
                                                            <PagerStyle CssClass="GridPager" />
                                                        </asp:GridView>
                                                        <asp:Label Font-Size="Larger" ID="LblSearchNotFound" runat="server" Text="لم يتم العثور على الطالب"
                                                            ForeColor="Red" Visible="false"></asp:Label>
                                                    </asp:Panel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td nowrap="nowrap" colspan="2">
                                                    نوع &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" nowrap="nowrap">
                                                    <asp:HiddenField ID="HFStudent" runat="server" />
                                                    <asp:HiddenField ID="HFdis" runat="server" Value="0" />
                                                    <asp:RadioButtonList ID="rdblSubscription" runat="server" Height="25px" RepeatDirection="Horizontal"
                                                        TabIndex="11" Width="100%" AutoPostBack="True" OnSelectedIndexChanged="rdblSubscription_SelectedIndexChanged">
                                                        <asp:ListItem Value="0">ذهاب  فقط</asp:ListItem>
                                                        <asp:ListItem Value="1">عودة فقط</asp:ListItem>
                                                        <asp:ListItem Value="2">ترم واحد</asp:ListItem>
                                                        <asp:ListItem Value="4">ذهاب ترم واحد</asp:ListItem>
                                                        <asp:ListItem Value="4">عودة ترم واحد</asp:ListItem>
                                                        <asp:ListItem Selected="True" Value="5">بدون اشتراك</asp:ListItem>
                                                    </asp:RadioButtonList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" nowrap="nowrap">
                                                    <asp:Panel ID="PlBus" runat="server">
                                                        <table dir="rtl" style="width: 100%; float: right">
                                                            <tr>
                                                                <td>
                                                                    <asp:Panel ID="PLGo" runat="server">
                                                                        <table dir="rtl" style="width: 100%; float: right">
                                                                            <tr>
                                                                                <td colspan="2">
                                                                                    إتجاه الذهاب
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td style="width: 13px">
                                                                                    المنطقة
                                                                                </td>
                                                                                <td style="width: 233px">
                                                                                    <asp:DropDownList ID="ddlDistrict" runat="server" AppendDataBoundItems="True" AutoPostBack="True"
                                                                                        DataTextField="Name" DataValueField="Id" OnSelectedIndexChanged="ddlDistrict_SelectedIndexChanged"
                                                                                        TabIndex="6" Width="150px">
                                                                                        <asp:ListItem Value="0">اختيار</asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ddlDistrict"
                                                                                        Display="Dynamic" ErrorMessage="*" ForeColor="Red" InitialValue="0" ValidationGroup="temp">*</asp:RequiredFieldValidator>
                                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="ddlDistrict"
                                                                                        Display="Dynamic" ErrorMessage="مطلوب" ForeColor="Red" ValidationGroup="go" InitialValue="0">*</asp:RequiredFieldValidator>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td style="width: 13px">
                                                                                    المحطة
                                                                                </td>
                                                                                <td style="width: 233px">
                                                                                    <asp:DropDownList ID="ddlstation" runat="server" AppendDataBoundItems="True" DataTextField="Name"
                                                                                        DataValueField="Id" TabIndex="7" Width="150px" AutoPostBack="True" OnSelectedIndexChanged="ddlstation_SelectedIndexChanged">
                                                                                        <asp:ListItem Value="0">اختيار</asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="ddlstation"
                                                                                        Display="Dynamic" ErrorMessage="*" ForeColor="Red" InitialValue="0" ValidationGroup="temp">*</asp:RequiredFieldValidator>
                                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ControlToValidate="ddlstation"
                                                                                        ErrorMessage="مطلوب" ForeColor="Red" ValidationGroup="go" InitialValue="0">*</asp:RequiredFieldValidator>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td style="width: 13px">
                                                                                    الباص
                                                                                </td>
                                                                                <td style="width: 233px">
                                                                                    <asp:DropDownList ID="ddlbus" runat="server" AppendDataBoundItems="True" AutoPostBack="True"
                                                                                        DataTextField="Name" DataValueField="Id" OnSelectedIndexChanged="ddlbus_SelectedIndexChanged"
                                                                                        TabIndex="5" Width="150px">
                                                                                        <asp:ListItem Value="0">اختيار</asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddlbus"
                                                                                        Display="Dynamic" ErrorMessage="*" ForeColor="Red" InitialValue="0" ValidationGroup="temp">*</asp:RequiredFieldValidator>
                                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="ddlbus"
                                                                                        Display="Dynamic" ErrorMessage="مطلوب" ForeColor="Red" ValidationGroup="go" InitialValue="0">*</asp:RequiredFieldValidator>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </asp:Panel>
                                                                </td>
                                                                <td>
                                                                    <asp:Panel ID="Plback" runat="server">
                                                                        <table dir="rtl" style="width: 100%; float: right">
                                                                            <tr>
                                                                                <td colspan="2">
                                                                                    إتجاه العودة &nbsp;
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td style="width: 34px">
                                                                                    المنطقة
                                                                                </td>
                                                                                <td>
                                                                                    <asp:DropDownList ID="ddlDistrictback" runat="server" AppendDataBoundItems="True"
                                                                                        AutoPostBack="True" DataTextField="Name" DataValueField="Id" OnSelectedIndexChanged="ddlDistrictback_SelectedIndexChanged"
                                                                                        TabIndex="9" Width="150px">
                                                                                        <asp:ListItem Value="0">اختيار</asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="ddlDistrictback"
                                                                                        Display="Dynamic" ErrorMessage="*" ForeColor="Red" InitialValue="0" ValidationGroup="temp">*</asp:RequiredFieldValidator>
                                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ControlToValidate="ddlDistrictback"
                                                                                        Display="Dynamic" ErrorMessage="مطلوب" ForeColor="Red" ValidationGroup="ba" InitialValue="0">*</asp:RequiredFieldValidator>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td style="width: 34px">
                                                                                    المحطة
                                                                                </td>
                                                                                <td>
                                                                                    <asp:DropDownList ID="ddlstationback" runat="server" AppendDataBoundItems="True"
                                                                                        DataTextField="Name" DataValueField="Id" TabIndex="10" Width="150px" AutoPostBack="True"
                                                                                        OnSelectedIndexChanged="ddlstationback_SelectedIndexChanged">
                                                                                        <asp:ListItem Value="0">اختيار</asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="ddlstationback"
                                                                                        Display="Dynamic" ErrorMessage="*" ForeColor="Red" InitialValue="0" ValidationGroup="temp">*</asp:RequiredFieldValidator>
                                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" ControlToValidate="ddlstationback"
                                                                                        Display="Dynamic" ErrorMessage="مطلوب" ForeColor="Red" ValidationGroup="ba" InitialValue="0">*</asp:RequiredFieldValidator>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td style="width: 34px">
                                                                                    الباص
                                                                                </td>
                                                                                <td>
                                                                                    <asp:DropDownList ID="ddlbusback" runat="server" AppendDataBoundItems="True" AutoPostBack="True"
                                                                                        DataTextField="Name" DataValueField="Id" OnSelectedIndexChanged="ddlbusback_SelectedIndexChanged"
                                                                                        TabIndex="8" Width="150px">
                                                                                        <asp:ListItem Value="0">اختيار</asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="ddlbusback"
                                                                                        Display="Dynamic" ErrorMessage="*" ForeColor="Red" InitialValue="0" ValidationGroup="temp">*</asp:RequiredFieldValidator>
                                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ControlToValidate="ddlbusback"
                                                                                        Display="Dynamic" ErrorMessage="مطلوب" ForeColor="Red" ValidationGroup="ba" InitialValue="0">*</asp:RequiredFieldValidator>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </asp:Panel>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </asp:Panel>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 62px; height: 23px;">
                                        &nbsp;
                                    </td>
                                    <td style="height: 23px">
                                        <asp:Button ID="btndiscount" runat="server" OnClick="btndiscount_Click" Text="حفظ"
                                            CssClass="graybutton" ValidationGroup="st" TabIndex="12" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <asp:Panel ID="pldiscount" runat="server" Visible="False">
                                            <table dir="rtl" style="width: 100%; float: right">
                                                <tr>
                                                    <td style="width: 15px">
                                                        الخصومات
                                                    </td>
                                                    <td>
                                                        <asp:HiddenField ID="HfDicId" runat="server" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2">
                                                        <asp:GridView ID="gvdiscount" runat="server" AlternatingRowStyle-CssClass="GridItemAltername"
                                                            AutoGenerateColumns="False" CssClass="Grid" DataKeyNames="Id,Type,Value" FooterStyle-CssClass="GridHeaderFooter"
                                                            HeaderStyle-CssClass="GridHeaderFooter" PagerStyle-CssClass="GridPager" Width="100%">
                                                            <AlternatingRowStyle CssClass="GridItemAltername" />
                                                            <Columns>
                                                                <asp:TemplateField>
                                                                    <HeaderTemplate>
                                                                        م
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <%# Container.DataItemIndex + 1 %>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:BoundField DataField="Name" HeaderText="الخصم" ReadOnly="True" SortExpression="Name" />
                                                                <asp:TemplateField HeaderText="النوع">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="Type" runat="server" Text='<%# GetType(Eval("Type")) %>'></asp:Label>
                                                                        <asp:Label ID="LblType" runat="server" Text='<%# Eval("Type") %>' Visible="false"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="القيمة">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="Value" runat="server" Text='<%# GetValue(Eval("Type"),Eval("Value")) %>'></asp:Label>
                                                                        <asp:Label ID="LblValue" runat="server" Text='<%# Eval("Value") %>' Visible="false"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField>
                                                                    <ItemTemplate>
                                                                        <asp:CheckBox ID="chdis" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <FooterStyle CssClass="GridHeaderFooter" />
                                                            <HeaderStyle CssClass="GridHeaderFooter" />
                                                            <PagerStyle CssClass="GridPager" />
                                                        </asp:GridView>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2">
                                                        <asp:Button ID="btntotal" runat="server" CssClass="graybutton" OnClick="btntotal_Click"
                                                            Text="الاجمالي" />
                                                        <asp:Label ID="lblprice" runat="server" Text="0" Visible="False"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2">
                                                        <asp:Button ID="btnpayment" runat="server" CssClass="graybutton" OnClick="btnpayment_Click"
                                                            TabIndex="13" Text="إنشاء أمر دفع" />
                                                        &nbsp;
                                                        <asp:HiddenField ID="HfId" runat="server" Value="0" />
                                                    </td>
                                            </table>
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 62px">
                                    </td>
                                    <td>
                                        &nbsp;
                                        <asp:Literal ID="lbltst" runat="server" Visible="False"></asp:Literal>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="paymentOrderPanel" Visible="false" runat="server">
                            <asp:GridView ID="paymentOrderGrid" runat="server" AutoGenerateColumns="False" Width="100%"
                                CssClass="Grid" HeaderStyle-CssClass="GridHeaderFooter" FooterStyle-CssClass="GridHeaderFooter"
                                PagerStyle-CssClass="GridPager" AlternatingRowStyle-CssClass="GridItemAltername">
                                <Columns>
                                    <asp:BoundField DataField="Number" HeaderText="رقم امر الدفع" />
                                    <asp:BoundField DataField="Value" HeaderText="القيمة" ItemStyle-CssClass="VoucherValue" />
                                    <asp:HyperLinkField DataNavigateUrlFields="Number" DataNavigateUrlFormatString="../Accounting/BusVoucher.aspx?Number={0}"
                                        Text="تسديد" ItemStyle-CssClass="AddVoucher" />
                                    <%--
                                    <asp:HyperLinkField DataNavigateUrlFields="Number" DataNavigateUrlFormatString="ShowReport.aspx?Id={0}"
                                        Text="طباعة" />
                                    --%>
                                </Columns>
                            </asp:GridView>
                        </asp:Panel>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
